package com.zxl.yunpicture.infrastructure.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 线程池配置
 */
@Data
@Component
@ConfigurationProperties(prefix = "thread-pool")
public class ThreadPoolConfig {
    private int coreSize;
    private int maxSize;
    private long keepAliveTime;
    private int queueCapacity;
    private String threadNamePrefix;
    private String rejectedHandler;
    private boolean allowCoreThreadTimeout;
}